package com.fitzone.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fitzone.model.dto.CourseDTO;
import com.fitzone.model.dto.CourseMiniDTO;
import com.fitzone.model.entity.Course;
import com.fitzone.model.vo.CourseMiniInfoVO;
import com.fitzone.model.vo.CourseMiniVO;
import com.fitzone.model.vo.CourseVO;

import java.util.List;

public interface CourseService extends IService<Course> {

    void saveCourse(CourseDTO courseDTO);
    void updateCourse(CourseDTO courseDTO);
    CourseVO getId(Long id);

    List<CourseMiniVO> courseList(CourseMiniDTO courseMiniDTO);

    CourseMiniInfoVO courseInfoById(Long courseId);

    int publishCourse(Long id);
}
